package appapi.Vo.basic;

import appapi.entity.Zhongjiao.CompanyDto;
import appapi.entity.Zhongjiao.DictionaryDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * 请求对象
 *
 * @author luocheng
 * @version 1.0
 * @date 2023/06/02 15:10
 */
@ApiModel
@Data
public class AddDictVo {
    /**
     * 记录ID
     */
    @ApiModelProperty(value = "记录ID")
    private Long dictId;

    /**
     * 类别
     */
    @ApiModelProperty(value = "类别")
    private String dictType;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String dictName;

    /**
     * 值
     */
    @ApiModelProperty(value = "值")
    private String dictValue;

    /**
     * 状态 0 正常 1 停用
     */
    @ApiModelProperty(value = "状态 0 正常 1 停用")
    private Integer dictState;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer dictSort;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String dictNote;

    public DictionaryDto vo2Entity(){
        DictionaryDto entity = new DictionaryDto();
        BeanUtils.copyProperties(this,entity);
        return entity;
    }
}
